﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace X3DXamlXna
{
    public class OpenFileDialog
    {
        private System.Windows.Forms.OpenFileDialog openFD = new System.Windows.Forms.OpenFileDialog();

        public string FileName { get { return openFD.FileName; } private set { } }

        public OpenFileDialog()
        {
            openFD.Filter = "X3D file|*.x3d";
            openFD.Multiselect = false;
            openFD.Title = "Select X3D file";
            openFD.InitialDirectory = System.Environment.GetFolderPath(Environment.SpecialFolder.Personal);
        }
        public DialogResult ShowDialog()
        {
            return openFD.ShowDialog();
        }

        public void Dispose()
        {
            if (openFD != null)
            {
                openFD.Dispose();
            }
        }

    }
}
